package workspace.teaweb.User.service;


import workspace.teaweb.User.pojo.dto.UserLoginParam;
import workspace.teaweb.User.pojo.dto.UserSaveParam;
import workspace.teaweb.User.pojo.vo.UserVO;

import javax.servlet.http.HttpSession;

public interface UserService {
    //注册用户saveUser
    void saveUser(UserSaveParam userSaveParam);
    //登录用户login
    UserVO login(UserLoginParam userLoginParam);
    //修改用户信息updateUser
    void updateUser(UserSaveParam userSaveParam);


    //以下方法用于获取用户的信息
    UserVO getCurrentUser(HttpSession session);
    //以下方法用于获取用户的id
    Long getCurrentUserId(HttpSession session);
}
